﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MC.RideEvent.Mvc.Helpers
{
    public static class DateTimeExtension
    {
        /// <summary>
        /// This method return DateTime field 
        /// into a string french format.
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        public static string ToStringFr(this DateTime date)
        {
            var str = string.Format("{0}", date.ToString("dd MMM yyyy"));
            return str;
        }
    }
}